import Cars2.*;

public class Main {
    public static void main(String[] args) {

        System.out.println("Hello and welcome!");

        AbstractProductSportsCar mySportsCar;
        AbstractProductPickupTruck myPickupTruck;
        AbstractProductSedan mySedan;
        IAbstractFactoryCars factory = new FactoryMercedesBenz();
        mySportsCar = factory.createProductSportsCar();
        mySedan = factory.createProductSeDan();
        myPickupTruck = factory.createProductPichupTruck();

        System.out.println(mySportsCar.ShowName());
        System.out.println(mySedan.ShowInfo());
        System.out.println(myPickupTruck.ShowInfo());

    }
}